using System.Collections.Generic;
using com.tc.util;
using  com.tc.zigbee.zcl;
using  com.tc.zigbee.entity;
using  com.tc.zigbee.zcl.command;
namespace com.tc.zigbee.mt.income
{
    public class NodeDescriptorResponse : IncomeMessage
    {

        public NodeDescriptor getNodeDescriptor()
        {
            return nodeDescriptor;
        }
        public NodeDescriptorResponse(byte[] command)
        {
            int i = 0;
            byte[] ad = new byte[2];
            ad[0] = command[i++];
            ad[1] = command[i++];
            nodeDescriptor.srcAddr = DataUtil.shortValue(ad);
            status = command[i++];
            ad[0] = command[i++];
            ad[1] = command[i++];
            nodeDescriptor.nwkAddr = DataUtil.shortValue(ad);
            nodeDescriptor.logicalType = command[i++];
            nodeDescriptor.apsFlag = command[i++];
            nodeDescriptor.MACCapabilityFlags = command[i++];
            ad[0] = command[i++];
            ad[1] = command[i++];
            nodeDescriptor.manufacturerCode = DataUtil.shortValue(ad);
            nodeDescriptor.maxBufferSize = command[i++];
            ad[0] = command[i++];
            ad[1] = command[i++];
            nodeDescriptor.maxTransferSize = DataUtil.shortValue(ad);
            ad[0] = command[i++];
            ad[1] = command[i++];
            nodeDescriptor.serverMask = DataUtil.shortValue(ad);
            ad[0] = command[i++];
            ad[1] = command[i++];
            nodeDescriptor.maxOutTransferSize = DataUtil.shortValue(ad);
            nodeDescriptor.descriptorCapabilities = command[i++];
        }
        byte status;
        NodeDescriptor nodeDescriptor = new NodeDescriptor();
    }
}